﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Common.Entities
{
    [Serializable]
    public class Entity
    {
        [NonSerialized]
        private long _id;//идентификатор сущности
        [NonSerialized]
        private Vector2 _position;//позиция
        [NonSerialized]
        private float _rotation;//угол поворота
        [NonSerialized]
        private BoundingBox _collisionRect;//прямоугольник для проверки коллизий
        
        public long ID
        {
            get { return _id; }
            set { _id = value; }
        }

        public BoundingBox CollisionRect
        {
            get { return _collisionRect; }
            set { _collisionRect = value; }
        }

        public float Rotation
        {
            get { return _rotation; }
            set { _rotation = value; }
        }

        public Vector2 Position
        {
            get { return _position; }
            set { _position = value; }
        }
    }
}
